FUNCTION
check_auth_args
function check_auth_args(a_t: auth_type, args: byte_array, signers: list<byte_array>, required_flags: list<text>): validation_resultChecks that the multi-sig auth descriptor has all the requirements to authorize an operation.
Can only be called from an operation.
Gives invalid results when the signatures cannot be validated, i.e.:
signersis 0 or more than one, but the auth type isauth_type.S- the single sig signer did not sign
- not enough multisig signers signed
- the flags of the auth descriptors do not contain all
required_flags
Parameters
- args — The args for this auth descriptor.
- signers — The signers for this auth descriptor.
- required_flags — The flags it must have for the operation that needs to be authorized.
Returns
utils.VALID if valid, utils.invalid otherwise.
© 2024 Chromia